]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ci: Switch ESLint rule eqeqeq to smart mode
authorEvan Welsh <contact@evanwelsh.com>
Tue, 5 Jul 2022 16:13:15 +0000 (12:13 -0400)
committerEvan Welsh <contact@evanwelsh.com>
Wed, 6 Jul 2022 17:40:44 +0000 (13:40 -0400)
This allows comparisons like != null and == null while still erroring
on other usages of == and !=.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2363>

lint/eslintrc-shell.yml

index 42a829a63bc631b4a238ed25a123280842ebe451..e0356b1e43e8c40a7a8a34b527e0580ae0ed7967 100644 (file)
@@ -4,6 +4,9 @@ rules:
     - properties: never
       allow: [^vfunc_, ^on_]
   consistent-return: error
+  eqeqeq:
+    - error
+    - smart
   key-spacing:
     - error
     - mode: minimum